//
//  GAKKIBaseImageView.h
//  GANGAIKit
//
//  Created by fh on 2019/11/6.
//  Copyright © 2019 cashchina. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GAKKIConfig.h"
@class GAKKIBaseImageView;

NS_ASSUME_NONNULL_BEGIN

typedef GAKKIBaseImageView * _Nonnull (^GAKKIImageViewFrame) (CGRect frame);
typedef GAKKIBaseImageView * _Nonnull (^GAKKIImageViewBackgroundColor) (UIColor * __nullable backgroundColor);
typedef GAKKIBaseImageView * _Nonnull (^GAKKIImageViewImage) (UIImage * __nullable image);

/// 图片基类
@interface GAKKIBaseImageView : UIImageView

/// 工厂类方法
/// @param block 实例对象
+ (GAKKIBaseImageView *)gakki_makeImageView:(void(^)(GAKKIBaseImageView * imageView))block;

/// 尺寸
@property (nonatomic, readonly, copy) GAKKIImageViewFrame gakki_frame;
/// 背景颜色
@property (nonatomic, readonly, copy) GAKKIImageViewBackgroundColor gakki_backgroundColor;
/// 图片
@property (nonatomic, readonly, copy) GAKKIImageViewImage gakki_image;
/// 高亮图片
@property (nonatomic, readonly, copy) GAKKIImageViewImage gakki_highlightedImage;

@end

NS_ASSUME_NONNULL_END
